package com.yue.pattern.celue.payport;

import com.yue.pattern.celue.PayState;

/**
 * 支付渠道
 */
public class AliPay implements Payment {
    @Override
    public PayState pay(String uid, double amount) {

        System.out.println("欢迎使用支付宝");
        System.out.println("查询账户余额，开始扣款......");

        return new PayState(200, amount, "支付成功");
    }
}
